# -*- coding: UTF-8 -*-

# FileName     : __init__
# Author       : EastsunW eastsunw@foxmail.com
# Create at    : 2022-04-23 00:43
# Last Modified: 2022-04-23 00:43
# Modified By  : EastsunW
# -------------
# Description  :
# -------------

from flask import Blueprint
from flask import render_template

views = Blueprint(
    "view", __name__,
    template_folder = "Templates",
    static_folder   = "Static",
    static_url_path = "/"
)

@views.route("/")
def main():
    return render_template("index.html")

@views.app_errorhandler(404)
def handle_404(e):
    return render_template("index.html")

@views.app_errorhandler(500)
def handle_505(e):
    # return root_dir
    return render_template("505.html")
